/* ------------------------------------------------ */
/* FLOATING CONTACT BUTTON (WHATSAPP)               */
/* ------------------------------------------------ */
.contact-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    z-index: 999999;
    /* On top of everything */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    /* Keep the mask perfectly circular */
    /* Fixed white background: the dove (img-contact) is reduced below but
       the background circle must always remain the same size. */
    background-color: #ffffff;

    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    -webkit-tap-highlight-color: transparent !important;
}

.contact-whatsapp-btn>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    clip-path: circle(0% at 50% 50%);
    will-change: clip-path, opacity;
    opacity: 0;
    box-sizing: border-box;
}

/* Default stacking order (bottom → top) inside the circular button */
.contact-whatsapp-btn .img-contact {
    z-index: 1;
}

.contact-whatsapp-btn .text-w-b {
    z-index: 2;
}

.contact-whatsapp-btn .img-micro {
    z-index: 3;
}

.contact-whatsapp-btn .text-b-w {
    z-index: 4;
}

.contact-whatsapp-btn img {
    object-fit: cover;
    display: block;
}

.contact-whatsapp-btn .text-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main), sans-serif;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.0;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    padding: 0;
}

.contact-whatsapp-btn .text-contact span {
    display: block;
}

.contact-whatsapp-btn .text-w-b {
    background-color: #000000;
    color: #ffffff;
}

.contact-whatsapp-btn .text-b-w {
    background-color: #ffffff;
    color: #000000;
}

/* Active states driven by classes on button */
.contact-whatsapp-btn.show-dove .img-contact {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
    z-index: 10 !important;
}

.contact-whatsapp-btn.show-micro .img-micro {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
}

.contact-whatsapp-btn.show-text-wb .text-w-b {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
}

.contact-whatsapp-btn.show-text-bw .text-b-w {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
    z-index: 10 !important;
}

.contact-whatsapp-btn.top-dove .img-contact {
    z-index: 15 !important;
}

.contact-whatsapp-btn.top-text .text-b-w {
    z-index: 15 !important;
}

/* Color inversion of contact dove for white background */
.contact-whatsapp-btn .img-contact {
    filter: invert(1) !important;
    /* Reduced dove (75%), centered; the white background of the PNG (inverted
       black) blends with the background color of the button, so the white
       circle does not shrink together with the dove. */
    width: 75% !important;
    height: 75% !important;
    top: 12.5% !important;
    left: 12.5% !important;
}

.contact-whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.contact-whatsapp-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

@media (max-width: 900px) {
    .contact-whatsapp-btn {
        width: 70px !important;
        height: 70px !important;
        bottom: 20px;
        right: 20px;
    }

    .contact-whatsapp-btn .text-contact {
        font-size: 13px !important;
    }
}

/* ------------------------------------------------ */
/* FLOATING INSTAGRAM BUTTON                        */
/* ------------------------------------------------ */
.instagram-float-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    z-index: 999999;
    /* Por encima de todo */
    cursor: pointer;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;

    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    -webkit-tap-highlight-color: transparent !important;
}

.instagram-float-btn svg {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
    display: block;
}

.instagram-float-btn:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background-color: #ffffff;
    color: #000000;
}

.instagram-float-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

@media (max-width: 900px) {
    .instagram-float-btn {
        width: 70px !important;
        height: 70px !important;
        bottom: 20px;
        left: 20px;
    }

    .instagram-float-btn svg {
        width: 30px !important;
        height: 30px !important;
    }
}




/* ------------------------------------------------ */
/* INSTAGRAM BUTTON (CONTACT SECTION)               */
/* ------------------------------------------------ */
.instagram-btn-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 15;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.instagram-btn-container.hide-down {
    transform: translateY(280px) scale(0.7) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.instagram-btn {
    display: block;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent !important;
}

.instagram-circle {
    width: 90px;
    height: 90px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.instagram-icon {
    width: 40px;
    height: 40px;
    stroke: #050505;
    transition: stroke 0.3s ease;
}

.instagram-circle:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 899px) {
    .instagram-circle {
        width: 60px;
        height: 60px;
    }

    .instagram-icon {
        width: 28px;
        height: 28px;
    }
}
