* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --title-secondary: #2C3E22;
    --padding-default: 20px;
}

body {
    font-family: "Montserrat", sans-serif;
}

a {
    text-decoration: none;
}

h1,
h2 {
    font-family: "Cormorant Garamond", serif;
}

.container {
    max-width: 420px;
    margin: 0 auto;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    overflow: hidden;
}

.container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    z-index: -1;
    pointer-events: none;

}

.title-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1em;
    padding: var(--padding-default);

    .line {
        width: 40px;
        height: 1px;
        background: var(--title-secondary);
        margin: 0 auto;
    }

    h2 {
        color: var(--title-secondary);
        font-size: 1.9em;
        font-weight: 600;
    }

    p {
        color: rgba(44, 62, 34, 0.6);
        font-size: 0.9em;
        line-height: 1.4;
    }
}

.cta-whatsapp {
    display: inline-block;
    background: #577B44;
    color: #FFFFFF;
    width: 100%;
    text-align: center;
    border-radius: 30px;
    padding: 12px 10px;
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.3s ease, opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
     animation: pulse-cta 2s infinite cubic-bezier(0.66, 0, 0, 1);
  will-change: transform, box-shadow;
}
.cta-whatsapp:hover{
    background: #415c32;
    animation-play-state: paused;
}

.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;
}

/* 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);
}

@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(87, 123, 68, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(87, 123, 68, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(87, 123, 68, 0);
    transform: scale(1);
  }
}

/* ---------------------------- */

/*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 */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    background-color: #FFFFFF;
}

.img-placeholder {
    z-index: 1;
}

.img-high-res {
    opacity: 0;
    z-index: 2;
}
.img-high-res.loaded{
    opacity: 1;
}

/* Hero */
.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-profile-container {
    position: relative;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
    z-index: 3;

    img {
        max-width: 120px;
        width: 100%;
        height: auto;
        border-radius: 50%;
        border: 2px solid #FFF;
        position: absolute;
    }

    .img-high-res {
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    }
}

#hero {
    padding: var(--padding-default);

    .text-content {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 4em;
        flex-direction: column;
        text-align: center;

        h1 {
            font-size: 2.4em;
        }

        .subtitle {
            margin: .2em 0 2em;
            color: #5E5E5E;
            font-size: 1.1em;
        }
    }
}

/* Services */
#services {
    .cards {
        display: flex;
        flex-direction: column;
        gap: 1.5em;
        margin: 1.5em 0;
        padding: var(--padding-default);

        .card {
            max-width: 360px;
            background: #FFFFFF;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            margin: 0 auto;
            border-radius: 20px;
            box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
            overflow: hidden;
            transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);

            .image-service {
                width: 100%;
                position: relative;
                overflow: hidden;

                img {
                    width: 100%;
                    transition: transform 0.5s ease;
                }


                .time-session,
                .text-content {
                    position: absolute;
                }

                .time-session {
                    top: 6%;
                    right: 3%;
                    color: #71A08B;
                    background: #FFFFFF;
                    padding: 6px 10px;
                    border-radius: 30px;
                    display: flex;
                    align-items: center;
                    gap: 4px;

                    img {
                        width: 20px;
                    }

                    span {
                        font-size: 0.9em;
                        font-weight: 600;
                    }
                }

                .text-content {
                    left: 5%;
                    bottom: 10%;

                    h3 {
                        color: #FFFFFF;
                        font-family: "Cormorant Garamond", sans-serif;
                        font-size: 1.6em;
                    }

                    .priecing_desc {
                        display: flex;
                        align-items: center;
                        gap: 6px;

                        .priecing {
                            color: #C39F57;
                            font-weight: 620;
                            font-size: 1.1em;
                        }

                        .desc {
                            color: rgba(255, 255, 255, 0.8);
                            text-transform: uppercase;
                            font-size: .65em;
                        }
                    }
                }
            }

            .text-container {
                padding: 15px;
                width: 100%;
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            .description {
                color: #666666;
            }
        }
        .card:hover{
            transform: translateY(-10px);
        }
        .card:hover .image-service img{
            transform: scale(1.1);
        }
    }
}

/* Testimonials */
#testimonials {
    background-color: rgba(87, 123, 68, .4);
    padding: 10px 20px;
    margin: 2em 0;

    .cards {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5em;
        margin: 1em 0 2em;

        .card {
            max-width: 360px;
            background: #FFF;
            padding: 20px;
            border-radius: 20px;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
            display: flex;
            flex-direction: column;
            gap: 1em;

            .rating {
                display: flex;
                align-items: center;
            }

            .client-container {
                display: flex;
                align-items: center;
                gap: 8px;

                .client-photo {
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    background: #ebeeed;
                    display: flex;
                    justify-content: center;
                    align-items: center;

                    span {
                        color: #6A9C86;
                        font-weight: 600;
                    }
                }

                .info-client {
                    h4 {
                        margin-bottom: 2px;
                    }

                    .status {
                        font-size: 0.75em;
                        text-transform: uppercase;
                        color: #7D8682;
                    }
                }
            }
        }
    }

}

/* FAQ */
#questions {
    margin: 3em 0 1em;

    .faq-container {
        max-width: 420px;
        margin: 0 auto;
        font-family: "Manrope", sans-serif;
        padding: var(--padding-default);
        display: flex;
        flex-direction: column;
        gap: 1em;
    }

    .faq-item {
        border-bottom: 1px solid #eee;
        background: #D8E0D3;
        padding: 20px 20px 10px;
        border-radius: 20px;
        border: 1px solid #AFC7A5;
        box-shadow: rgba(216, 224, 211, 0.4) 0px 8px 24px;
    }

    .faq-trigger {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: left;
        transition: background 0.2s;
        margin-bottom: 10px;
        font-weight: 500;
        font-family: "Manrope", sans-serif;
        color: #525B4E;
        -webkit-tap-highlight-color: transparent;
    }

    .faq-content {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.3s ease-out;
        overflow: hidden;
    }

    .faq-icon {
        svg {
            fill: #525B4E;
            transition: transform 0.3s ease;
        }
    }

    .faq-inner {
        min-height: 0;
        color: #3d3d3d;
    }

    .faq-item.is-open .faq-content {
        grid-template-rows: 1fr;
    }

    .faq-item.is-open .faq-icon svg {
        transform: rotate(180deg);
    }

    .faq-item.is-open .faq-trigger {
        font-weight: 600;
    }
}

/* Local */
#local {
    background: #FFF;
    padding: 10px 0;

    .info-local {
        .title {
            font-family: "Cormorant Garamond", serif;
            font-size: 1.6em;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: #2c3e22;
            margin: 1em 0;

            svg {
                fill: #2c3e22;
            }

        }

        .working-days {
            margin: 1em 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            .day_and_hours {
                display: flex;
                align-items: center;
                width: 80%;
                justify-content: space-between;
                border-bottom: 1px solid rgba(140, 150, 130, 0.2);
                color: rgba(44, 62, 34, 0.9);

                p:first-child {
                    margin: 10px 0;
                }

                time {
                    font-weight: 600;
                }
            }

            .day_and_hours:last-child {
                border-bottom: none;

                p {
                    color: rgba(44, 62, 34, 0.5);
                }
            }
        }

        .address {
            padding: var(--padding-default);

            address {
                margin: 0 auto;

                a {
                    color: #2C3E22;
                    text-decoration: underline;
                }
            }
        }

        .map {
            display: flex;
            justify-content: center;
            padding: var(--padding-default);
        }

        iframe {
            border-radius: 20px;
            max-width: 400px;
        }
    }
}

/* Footer */
.cta-footer {
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 2em auto;

    .cta-whatsapp,
    .cta-instagram {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-transform: none;
        transition: background 0.3s ease, opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }

    svg {
        fill: #FFF;
    }

    .cta-instagram {
        background: #E23A80;
        color: #FFFFFF;
        width: 100%;
        text-align: center;
        border-radius: 30px;
        padding: 12px 10px;
        font-size: 0.9em;
        font-weight: 500;
    }
    .cta-instagram:hover{
        background: #bd366e;
    }
}


/* Accessibility */
.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 {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 0 auto;

    a {
        color: #2f6f63;
    }
}

.credits:hover {
    opacity: 1;
    text-decoration: underline;
}


/* Footer cta */
.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);
}

.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 accessibility */
#accessibilityDialog {
    position: relative;
    z-index: 99999;
    max-width: 380px;
    border-radius: 20px;
    background: #FFF;
    border: none;
    font-family: "Montserrat", 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;
        font-family: "Montserrat", sans-serif;
    }

    .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;
    }
}