/* Fixed corner; z-index below Bootstrap 3 .modal (1050). Rendered after #barraaceptacion in DOM so it stacks above the cookie bar when z-index ties. */
.floating-whatsapp {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 50%;
    background-color: #25d366;
    box-shadow: 0 0.1875rem 0.625rem rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
    transform: scale(1.06);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.28);
}

.floating-whatsapp:focus:not(:focus-visible) {
    outline: none;
}

.floating-whatsapp:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    box-shadow:
        0 0.25rem 0.75rem rgba(0, 0, 0, 0.28),
        0 0 0 4px rgba(255, 255, 255, 0.45);
}

.floating-whatsapp:active {
    transform: scale(0.98);
}

.floating-whatsapp__icon {
    display: block;
    width: 2.65rem;
    height: 2.65rem;
}

.floating-whatsapp__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.floating-whatsapp__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .floating-whatsapp {
        width: 4.75rem;
        height: 4.75rem;
    }

    .floating-whatsapp__icon {
        width: 2.4rem;
        height: 2.4rem;
    }
}
